package cn.tedu.autoshow.website.pojo.param;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
public class PaperCategoryAddNewParam {



    @ApiModelProperty(value = "类别名称", required = true)
    @NotEmpty(message = "添加类别名称失败，必须提交类别名称！")
    private String name;



    @ApiModelProperty(value = "简介", required = true, example = "简介")
    private String description;



    @Range(max = 99, message = "排序序号值不合法，合法范围0~99")
    @ApiModelProperty(value = "排序序号，范围0~255", example = "99")
    private Integer sort;



    @NotNull(message = "是否启用不能为空")
    @Range(max = 1, message = "是否启用值不合法")
    @ApiModelProperty(value = "是够启用", required = true, example = "1")
    private Integer enable;













}
